﻿using System;

namespace ExFlash.Actions
{
    public class ActionGoToFrame : ActionRecord
    {
        public ushort Frame
        {
            get;
            private set;
        }
        
        public ActionGoToFrame(ushort len)
            : base((byte)ActionCodes.ActionGoToFrame,len)
        {
        }
        
        public override void SwfDeserialize(BinaryBitReader reader)
        {
            Frame = reader.ReadUInt16();
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
